package com.cc.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cc.blog.entity.Article;
import com.cc.blog.vo.ArchivesDo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {


    List<ArchivesDo> listArchives();

    /**
     * 归档使用mp的分页
     */
    IPage<Article> listArchive(Page<Article>page,
                               Long categoryId,
                               Long tagId,
                               String year,
                               String month);
}
